﻿namespace ProjectManage.Web.Entry.Component
{
    // 模拟 ConfigureService
    public sealed class StartupServiceComponent : IServiceComponent
    {
        public void Load(IServiceCollection services, ComponentContext componentContext)
        {
            services.AddRemoteRequest(options =>
            {
                // 配置 微信 基本信息
                options.AddHttpClient("WeChat", c =>
                {
                    c.BaseAddress = new Uri("https://qyapi.weixin.qq.com/cgi-bin/");
                });
            });
        }
    }

    // 模拟 Configure
    public sealed class StartupApplicationComponent : IApplicationComponent
    {
        public void Load(IApplicationBuilder app, IWebHostEnvironment env, ComponentContext componentContext)
        {
            
        }
    }
}
